package com.itheima.Thraed.CreateThread;


import lombok.extern.slf4j.Slf4j;


public class demo01 {
    public static void main(String[] args) {

        Thread t = new Thread(){
            // target不为null，重写了runable方法
            @Override
            public void run() {
                System.out.println(this.getName() + " is running");
            }
        };
        t.start();
        System.out.println("main thread started");

    }
}
